Allow unregisterised ghc-8.6 to build newer GHC
authorDebian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org>
Fri, 31 Jul 2020 15:48:26 +0000 (16:48 +0100)
committerGianfranco Costamagna <locutusofborg@debian.org>
Fri, 31 Jul 2020 15:48:26 +0000 (16:48 +0100)
commit33ba297f1c0e246b712c5987922bf9d741ca85f8
tree52daea92c5bebd17342d112a039d4f45295adfaf
parentaf23fd5853c656a5a5558e074e40851b9b5ade37
Allow unregisterised ghc-8.6 to build newer GHC

Commit af9b744bbf1 introduced a regression stopping existing unregisterised
compilers from being able to compile newer versions of GHC. The problem is
that the bootstrap compiler uses the newer `includes/stg/MiscClosures.h` file
where some defines have been renamed, resulting in the following error:
.
 error: ‘stg_atomicModifyMutVarzh’ undeclared (first use in this function); did you mean ‘stg_atomicModifyMutVar2zh’?
.
 For more information, see https://gitlab.haskell.org/ghc/ghc/issues/17111.
.
 This patch can be removed, once ghc-8.6 is no longer the bootstrap compiler.
Author: Ilias Tsitsimpis <iliastsi@debian.org>
Bug: https://gitlab.haskell.org/ghc/ghc/issues/17111

Gbp-Pq: Name fix-build-using-unregisterised-v8.6
includes/stg/MiscClosures.h